<template>
    <div>
        <nuxt-link to="/film/nowPlaying" tag="div" active-class="myactive">
            <h4>
                <span>正在热映</span>
                <span class="tab-ink-bar"></span>
            </h4>
        </nuxt-link>
        <nuxt-link to="/film/comingSoon" tag="div" active-class="myactive">
            <h4>
                <span>即将上映</span>
                <span class="tab-ink-bar animate-route"></span>
            </h4>
        </nuxt-link>
    </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
div {
    display: flex;
    height: 40px;
    div {
        flex: 1;
        font-size: 14px;
        margin: 0 auto;
        border-bottom: 1px solid #eeeeee;
        cursor: pointer;
    }
}

.myactive {
    color: #ff5f16;
    .tab-ink-bar {
        width: 56px;
        height: 2px;
        border-bottom: 2px solid #ff5f16;
        border-radius: 20px;
        display: block;
        margin-top: 8px;
    }
}

h4 {
    margin: 0 auto;
    margin-top: 10px;
    font-weight: normal;
}

.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    z-index: 10;
}
</style>
